package com.dyp.argumentvalidation.model;

import javax.validation.constraints.NotEmpty;

public class Author {
    @NotEmpty(message = "name不能为空")
    private String name;

    private String city;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "Author{" +
                "name='" + name + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
